import { refDebounced, refThrottled } from '@vueuse/core'
import { Ref } from 'vue'
// 防抖
export const debounce = (value: Ref, delay: number) => {
    return refDebounced(value, delay)
}
// 节流
export const throttle = (value: Ref, delay: number) => {
    return refThrottled(value, delay)
}